/*
 * 常用列表混入
 */
export const listMixin = {
    data: function () {
        return {
            roleList: []
        };
    },

    mounted () {},

    methods: {
        /* 获取角色列表 */
        getRoleList () {
            this.$store.dispatch("commonList/GET_ROLELIST").then(res => {
                this.roleList = res;
            });
        }
    }
};